"""
为输入的十六进制字符串，添加空格。如123456 -> 12 34 56
"""


def HexStrAddSpace(HexStr):
    out_data = ''
    for i, s in enumerate(HexStr):
        if (i % 2 == 0):
            out_data += ' '
            out_data += s
        else:
            out_data += s
    return out_data.upper()


hexstr = "42584C4313020000070304A8F301000000000000000000000000000001803DE2D376437BFA30D67392745137E220CB36C020082FAA6791699C760635A831CB3CCD2E457BEF36C723DE315837B065806091660424BC7D8C6186651F24A8698273DC3D4770F02ACC34CE384B72A87F8273C73A0839AA67C13DC7214E60F920D038CC761035A8678E718A24587AED37C33CC43B497EEF21D125C9205F66A87F8273C7324C37A6658027C7385F78EF6798718A651A25A8698273DC3D4770F02ACC348A6E0A37CB36CB3087074274E422CA30C1760635A835CB358A6E0A37BF7593609B641925B97196669C651925BA7793609D616921CB7D9B69EE651A53A8698273DB375870EF2BCD3FC7324C66FE24D624DB761035A874807D8876497AE431D03EC4384F67FE3CD2348A6E0A37BB74946190760635A823CB23C5234B67EF33C723DB3D457BA87F82739A671A2CBB7792618A780A37E92ACC25DA3B4679EF37CC30C531082FAA67FB60E9760635A827C323CB3B4E70A87F8273EB657324CB75906399651B2DBA7592608A780A37E224D130C4355878F920D625C13A4D66A87F827398760635A821C737C9214661FA37CD36DA354779E336D6739274084EAD2AC4378F090839AA67CB21C53B4E70A87F8273CC3C4965A8698273DF3D4E61E26798718A651327A8698273DB375870EF2BCE3ECB3F4F71F931C325DD27082FAA679273D5780A37E424CF348A6E0A37C62AC538C67657"
HexStrWithSpace = HexStrAddSpace(hexstr)
print("\n", HexStrWithSpace, end='\n')